COM AT^SGND Get phone number associated date
COM V1.0	08.12.04	T. Kleinmann	Started
COM V1.1 	27.01.05	T. Kleinmann    Re-worked according to new R75 Draft
COM V1.2	22.02.2005	T. Kleinmann	Added new test case to get more than one record for the same number

####################################################################################################
# ToDo(S3): Check returned parameters number, name, IDType, ID
#       Clarify IDType
####################################################################################################

from attglobals import *
from string import *

####################################################################################################

COM First of all create a Phonebook entry for testing...
AT+CPBW=50,+4917011111,145,'Test'
WAIT FOR OK

####################################################################################################

COM Test command
AT^SGND=?
WAIT FOR OK

####################################################################################################

COM Write command
ATCMD(1,'AT^SGND=+4917011111')
WAITFOR(1,'^SGND: Test,')#- Check returned parameters  IDType, ID

####################################################################################################

COM Create another Phonebook entry with the same name...
AT+CPBW=51,+4917211111,145,'Test'
WAIT FOR OK

####################################################################################################

COM Write command - want to get more than one number information record
ATCMD(1,'AT^SGND=+4917011111')
s_Resp = WAITFOR  (1,'OK')
if i_Anz==string.count(s_Resp,'^SGND') >= 2:
	USERTEST('Test passed. Please press "passed!"')
elif i_Anz < 2:
	USERTEST('Test failed. Please press "failed!"')

####################################################################################################